//
//  UIAlertView+MKBlockAdditions.h
//  UIKitCategoryAdditions
//
//  Created by Mugunth on 21/03/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UIAlertView (Block) <UIAlertViewDelegate> 
///----------------
/// @name Shortcuts
///----------------

+ (void)showAlertWithTitle:(NSString*)title;

/**
 Display a `UIAlertView` with a single button ("Dismiss").
 
 @param message Message text.
 @param title Title text.
 */
+ (void)showAlertWithTitle:(NSString*)message andMessage:(NSString*)message;

+ (instancetype)noticeWithTitle:(NSString*)title message:(NSString*)message buttonTitle:(NSString*)buttonTitle
                     completion:(void (^)())completion;

+ (instancetype)inputWithTitle:(NSString*)title submission:(void (^)(NSString* text))submission;

+ (instancetype)confirmationWithTitle:(NSString*)title confirmation:(void (^)())confirmation;

+ (instancetype)informationWithTitle:(NSString*)title confirmation:(void (^)())confirmation;

- (instancetype)initWithTitle:(NSString*)title message:(NSString*)message
            cancelButtonTitle:(NSString*)cancelButtonTitle otherButtonTitles:(NSArray*)otherButtonTitles
                   completion:(void (^)(UIAlertView* alertView, NSInteger buttonIndex))completion;

- (void)setCompletion:(void (^)(UIAlertView* alertView, NSInteger buttonIndex))completion;

@end
